export interface Crontab {
  minute: string;
  hour: string;
  day_of_week: string;
  day_of_month: string;
  month_of_year: string;
}

export interface TaskModel {
  id: number;
  organization: string;
  name: string;
  task: string;
  crontab: Crontab;
  enabled: boolean;
}

export interface CreateTaskParams {
  organization_id?: number | string;
  name: string;
  task: string;
  crontab: Crontab;
}

export interface EditTaskParams {
  name: string;
  task: string;
  enabled: boolean;
  crontab: Crontab;
}

export interface GetTaskListParams {
  organization_id?: number | string;
}

export interface GetLogListParams {
  connection_id: number | string;
  date: string;
}
